package com.kgc.provider;

import com.alibaba.dubbo.config.annotation.Service;
import com.kgc.api.user.UserReviverInfoApi;
import com.kgc.bean.UserReviverInfo;
import com.kgc.domain.UserReviverInfoPo;
import com.kgc.mapper.UserReviverInfoMapper;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created on 2021/6/24.
 * Author: lzy
 * Description:
 */
@Service
public class UserReviverInfoProvider implements UserReviverInfoApi {

    @Autowired
    private UserReviverInfoMapper userReviverInfoMapper;

    @Override
    public UserReviverInfo selectUserReviverInfoById(Integer id) {
        UserReviverInfoPo userReviverInfoPo = userReviverInfoMapper.selectByPrimaryKey(id);
        UserReviverInfo userReviverInfo = new UserReviverInfo();
        BeanUtils.copyProperties(userReviverInfoPo,userReviverInfo);
        return userReviverInfo;
    }
}
